<?php
/* 定义属性 */
define ("CONfilename", "../config/set.php");
define ("DDUDB","../class/db.class.php");
define ("LOADM","./class/m.php");
session_start();
/* 為系統作配置準備，方便以後系統引用數據庫 */
require_once(CONfilename);/*讀設置*/
require_once(DDUDB);/* 載入數據庫模塊 */
require_once(LOADM);/* 載入引導模塊 */
require_once '../class/load.class.php';
$db = new CDB();
$JF = new Jifen();
$M_ctrl = new m();
$ac =  $JF->getpublicac();
/* 收到信息 */
if (empty($_GET['action'])) {
	$action = '';
}else {
	$action = $_GET['action'];
	if (empty($_GET['value'])) {
		$value = '';
	}else {
		$value = $_GET['value'];
	}
	$M_ctrl->doAcav($action, $value);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>nbs工作室系統移動版</title>
<link href="./css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php
if($_POST)
{
	$M_ctrl->doAction($action,$_POST);
}
?>
<table width="750"  align="center" border="1" cellspacing="0">
  <tr align="left">
    <td width="180"><p class="jftext">用戶名：</p></td>
    <td width="210"><p class="jftext"><?php echo $M_ctrl->now_user; ?></p></td>
  </tr>
    <tr align="left">
    <td><p class="jftext">你的昵稱：</p></td>
    <td><p class="jftext"><?php echo $M_ctrl->now_nickname; ?></p></td>
  </tr>
  <tr align="left">
    <td><p class="jftext">當前積分：</p></td>
    <td><table width="200" border="0">
      <tr>
        <td><p class="jftext"><?php echo $JF->chajifen($M_ctrl->now_user);?></p></td>
        <td></td>
        <td></td>
      </tr>
    </table></td>
  </tr>
  <tr align="left">
    <td><p class="jftext">工作室賬號：</p></td>
    <td><p class="jftext"><?php echo $ac[0];?></p></td>
  </tr>
  <tr align="left">
    <td><p class="jftext">工作室密碼：</p></td>
    <td><p class="jftext"><?php echo $ac[1];?></p></td>
  </tr>
  <tr align="left">
    <td><p class="jftext">系統版本：</p></td>
    <td><p class="jftext">移動0.12_beta</p></td>
  </tr>
    <tr align="left">
    <td colspan="2"><font style="WHITE-SPACE: nowrap" color="#ffff00" size="3px">公告：</font></td>
  </tr>
</table>
<a href="index.php?action=logout">退出</a>
<?php 
/* 在這裏也要監控用戶是否已登錄 */
if (!$M_ctrl->is_selog()){
	echo $M_ctrl->getlogtab();
}else{

}
?>
</body>
</html>